package org.nf.trading.service.app.circle.impl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nf.trading.dao.CircleTypeMapper;
import org.nf.trading.entity.CircleType;
import org.nf.trading.service.app.circle.CircleTypeService;
import org.springframework.data.elasticsearch.client.erhlc.ElasticsearchRestTemplate;
import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@RequiredArgsConstructor
@Slf4j
@Transactional
public class CircleTypeImpl implements CircleTypeService {
    private final CircleTypeMapper circleTypeMapper;

    //注意es需要用这个
//    private ElasticsearchOperations elasticsearchOperations;
    /**
     * 查询全部圈子类型
     * @return
     */
    @Override
    public List<CircleType> selectAll() {
        return circleTypeMapper.selectAll();
    }
}
